package com.dmwork.service.customer.feign;

import com.dmwork.common.base.result.R;
import com.dmwork.service.customer.feign.impl.InteractionFeignServiceFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(name = "service-interaction-center", fallback = InteractionFeignServiceFallback.class)
public interface InteractionFeignService {


    /**
     * 获取指定用户的动态数
     * @param customerId
     * @return
     */
    @GetMapping("/front/dm_work/interaction/feed/feign/get_feed_count/{customerId}")
    R getFeedCount(@PathVariable String customerId);

    /**
     * 获取指定用户的作品收藏数
     * @param customerId
     * @return
     */
    @GetMapping("/front/dm_work/interaction/collect/feign/get_collect_count_by_customer_id/{customerId}")
    Integer getCollectCountByCustomerId(@PathVariable String customerId);

    /**
     * 获取指定区域背景图片url
     * @param locationId 区域id
     * @return data中：url
     */
    @GetMapping("/front/dm_work/interaction/cms_background/get_background/{locationId}")
    R getBackground(@PathVariable String locationId);

    /**
     * 获取指定颜色信息
     * @param colorKey
     * @return
     */
    @GetMapping("/front/dm_work/interaction/cms_color/get_color_by_color_key/{colorKey}")
    R getColorByColorKey(@PathVariable String colorKey);

}
